package com.starlinkdt.common.domain.system.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * OaiAccDto
 * 
 * @author asset
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@ApiModel(value = "OaiAccDto", description = "OAI-ACCOUNT-DTO")
public class OaiAccDto implements Serializable {
    private static final long serialVersionUID = 1L;

    public interface Add {}

    public interface Edit {}

    /** AccName */
    @ApiModelProperty("AccName")
    @NotBlank(groups = {Add.class, Edit.class}, message = "AccName不能为空")
    @Length(groups = {Add.class, Edit.class}, max = 32, message = "AccName最多32字符")
    private String accName;

    /** AccAppId */
    @ApiModelProperty("AccAppId")
    @NotBlank(groups = {Add.class, Edit.class}, message = "AccAppId不能为空")
    @Length(groups = {Add.class, Edit.class}, max = 32, message = "AccAppId最多32字符")
    private String accAppId;

    /** AccBizNo */
    @ApiModelProperty("AccBizNo")
    @NotBlank(groups = {Edit.class}, message = "AccBizNo不能为空")
    @Length(groups = {Edit.class}, max = 32, message = "AccBizNo最多32字符")
    private String accBizNo;

}
